//
//  CXSegmentControl.h
//  WangLottery
//
//  Created by 黄修勇 on 12-4-27.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface CXSegmentControl : UIControl{
 
    NSMutableArray *itemViews;
}

@property (nonatomic)NSInteger selectIndex;

@property (nonatomic)float offsetWidth;

-(id)initwithItem:(NSArray *)items;

@end


@interface CXSegmentItemView : UIControl{

    UIImageView *backgroundImageView;
    UILabel *titleLabel;
}

@property (nonatomic)BOOL isSelect;
@property (nonatomic,retain)UIImage *normalimage;
@property (nonatomic,retain)UIImage *hightedImage;
@property (nonatomic,retain)NSString *titleString;
@property (nonatomic)UIEdgeInsets titleLabelInsets;
@end